package org.example.threadlocal;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TestThread extends Thread {

    private String threadLocalParam;

    private ThreadLocal<String> threadLocal;

    @Override
    public void run() {
        threadLocal.set(this.threadLocalParam);
        System.out.println(threadLocal.get());
        threadLocal.remove();
    }

}
